package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.OOP_MVC_LV1.makeFriend;

import java.util.Scanner;

public class makeFriendView {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String name;
		int age;
		String gender;
		String condition;
		
		System.out.println("Please enter your name");
		Scanner sc = new Scanner(System.in);
		name = sc.nextLine();
		
		System.out.println("Please enter your age");
		sc = new Scanner(System.in);
		age = sc.nextInt();
		
		System.out.println("Please enter your gender");
		sc = new Scanner(System.in);
		gender = sc.nextLine();
		
		System.out.println("Please enter your condition");
		sc = new Scanner(System.in);
		condition = sc.nextLine();
		
		//khoi tao object
		People human = new People();
		human.setTen(name);
		human.setTuoi(age);
		human.setGioiTinh(gender);
		human.setTinhTrang(condition);
		
		//khoi tao controller
		
		makeFriendController c_human = new makeFriendController(human);

		if (c_human.RegisControllers()){
			System.out.println("You can make friend");
		}
		else {
			System.out.println("You can not enter");
		}

	}

}
